<template>
  <div class="musician-management">
    <h1>音乐人管理</h1>
    <el-table :data="musicians" style="width: 100%">
      <el-table-column prop="name" label="姓名" width="180"></el-table-column>
      <el-table-column prop="status" label="状态" width="180"></el-table-column>
      <el-table-column label="操作">
        <template #default="scope">
          <el-button @click="editMusician(scope.row)" type="text" size="small">编辑</el-button>
          <el-button @click="deleteMusician(scope.row)" type="text" size="small">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'MusicianManagement',
  data() {
    return {
      musicians: [
        { name: '张三', status: '活跃' },
        { name: '李四', status: '禁用' }
      ]
    };
  },
  methods: {
    editMusician(musician) {
      console.log('编辑', musician);
    },
    deleteMusician(musician) {
      console.log('删除', musician);
    }
  }
};
</script>

<style scoped>
.musician-management {
  padding: 20px;
}
</style>
